import Vue from 'vue'
import App from './App'
import store from './store'
import $Router from './router/router'
import $Routes from './router'
import $mUtils from './router/utils'

Vue.prototype.$store = store
Vue.prototype.$Router = $Router;
Vue.prototype.$Routes = $Routes;

Vue.config.productionTip = false
$Router.beforeEach((navType, to) => {
	uni[navType]({
		url: $mUtils.objParseUrlAndParam(to.route.path, to.query)
	})
})
App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
